home *** CD-ROM | disk | FTP | other *** search
/ Workplace Effectiveness:…ecision-Making Strategies / Workplace Effectiveness: Decision-Making Strategies.iso / pc / Files / Plan.dxr / 00003_Navigation handlers.ls < prev    next >
Encoding:
Text File  |  1998-12-16  |  1.4 KB  |  73 lines

  1. global gMasterData, gSection, gPlanNum, gHintOn
  2.  
  3. on goIntro
  4.   go(label("intro"))
  5.   set gSection to #intro
  6. end
  7.  
  8. on goPlans
  9.   go(label("plans"))
  10.   set gSection to #plans
  11.   set gPlanNum to 1
  12.   set gHintOn to 0
  13.   showQuestion()
  14. end
  15.  
  16. on goLast
  17.   go(label("last"))
  18.   set gSection to #last
  19.   set the member of sprite 8 to member "planfield"
  20.   goNarrator(gMasterData, "203")
  21. end
  22.  
  23. on nextPlan
  24.   if not activationOn(gMasterData) then
  25.     activate(gMasterData)
  26.   end if
  27.   if gPlanNum < 6 then
  28.     set gPlanNum to gPlanNum + 1
  29.     showQuestion()
  30.     if gPlanNum = 6 then
  31.       set the member of sprite 13 to member "print text"
  32.     end if
  33.   else
  34.     leaveThisMovie()
  35.   end if
  36. end
  37.  
  38. on prevPlan
  39.   if gPlanNum > 1 then
  40.     set gPlanNum to gPlanNum - 1
  41.     showQuestion()
  42.     if gPlanNum = 5 then
  43.       set the member of sprite 13 to member "click text"
  44.     end if
  45.   else
  46.     goIntro()
  47.   end if
  48. end
  49.  
  50. on showQuestion
  51.   set vArtText to 5
  52.   set vFieldSp to 8
  53.   set the member of sprite vArtText to member ("qplan" & string(gPlanNum))
  54.   set the member of sprite vFieldSp to member ("pfield" & string(gPlanNum)) of castLib "Shared"
  55.   if gHintOn then
  56.     clearHint()
  57.   end if
  58.   case gPlanNum of
  59.     1:
  60.       audio1xOnly(gMasterData, "195")
  61.     2:
  62.       audio1xOnly(gMasterData, "196")
  63.     3:
  64.       audio1xOnly(gMasterData, "197")
  65.     4:
  66.       audio1xOnly(gMasterData, "198")
  67.     5:
  68.       audio1xOnly(gMasterData, "199")
  69.     6:
  70.       audio1xOnly(gMasterData, "200")
  71.   end case
  72. end
  73.